
import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
		path:'/login',
		component: () => import('../views/user/login.vue')
	},
	{
		path:'/info',
		component: () => import('../views/home/Info.vue')
	},
	{
		path:'/register',
		component: () => import('../views/user/register.vue')
	},
	{
		path:'/home',
		component: () => import('../views/home/Home.vue')
	},
	{
		path:'/profile',
		component: () => import('../views/home/Profile.vue')
	},
	{
		path:'/resident/residentList',
		component: () => import('../components/resident/ResidentList.vue')
	}
]

const router = new VueRouter({
	mode:'history',
	routes
})


export default router